package ycl.important.service.impl.region;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import ycl.important.common.base.service.impl.BaseServiceImpl;
import ycl.important.entity.region.Country;
import ycl.important.mapper.region.CountryMapper;
import ycl.important.service.region.CountryService;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 国家表 服务实现类
 * </p>
 *
 * @author YCL
 * @since 2021-06-05
 */
@Service("countryService")
@Lazy
public class CountryServiceImpl
		extends BaseServiceImpl<CountryMapper, Country>
		implements CountryService {

	@Resource
	private CountryMapper countryMapper;

	@Override
	public List<Country> getAll() {
		return countryMapper.selectList(null);
	}
}
